import request from '@/utils/request'
//获取视频列表
export function getVideoList(params) {
  return request.get('/videos/getVideoList', { params })
}
//上传视频
export function uploadVideo(data) {
  return request.post('/oss/upload/video', data, {
    headers: {
      'Content-Type': 'multipart/form-data'
    }
  })
}
//上传封面
export function uploadPicture(data) {
  return request.post('/oss/upload/picture', data, {
    headers: {
      'Content-Type': 'multipart/form-data'
    }
  })
}
//上传视频信息表单
export function uploadVideoInfo(data) {
  return request.post('/videos/upload', data)
}
//获取视频详情
export function getVideoDetail(params) {
  return request.get('/videos/detail', { params })
}
//获取推荐视频列表
export function getRecommendVideos(videoId) {
  return request.get('/videos/recommend', { params: { videoId } })
}



